package com.ruoyi.tjfx.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.QueryGroup;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.Map;

@Data
public class ReportMonthlyBo extends BaseEntity {


    /**
     * 所属试验类型
     */
//    @NotNull(message = "所属试验类型不能为空", groups = { QueryGroup.class })
    private Long syType;

    /**
     * 所属试验室id
     */
    @NotNull(message = "所属试验室id不能为空", groups = { QueryGroup.class })
    private Long deptId;

    /**
     * 试验日期
     */
//    @NotNull(message = "试验日期不能为空", groups = {AddGroup.class, EditGroup.class})
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date reportDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endReportDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date beginReportDate;

    /**
     * 样品编号
     */
//    @NotBlank(message = "样品编号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String ypCode;



}
